﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DSEventByPeople" targetNamespace="http://tempuri.org/DSEventByPeople.xsd" xmlns:mstns="http://tempuri.org/DSEventByPeople.xsd" xmlns="http://tempuri.org/DSEventByPeople.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="ConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.ConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="EventsByPeopleTableAdapter" GeneratorDataComponentClassName="EventsByPeopleTableAdapter" Name="EventsByPeople" UserDataComponentName="EventsByPeopleTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="ConnectionString (Web.config)" DbObjectName="HSH_Prod.dbo.GetEventsByPeople" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.GetEventsByPeople</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@IsraelId" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="EventID" DataSetColumn="EventID" />
              <Mapping SourceColumn="EventName" DataSetColumn="EventName" />
              <Mapping SourceColumn="StartDate" DataSetColumn="StartDate" />
              <Mapping SourceColumn="EndDate" DataSetColumn="EndDate" />
              <Mapping SourceColumn="EventComments" DataSetColumn="EventComments" />
              <Mapping SourceColumn="Price" DataSetColumn="Price" />
              <Mapping SourceColumn="IsDeleted" DataSetColumn="IsDeleted" />
              <Mapping SourceColumn="RegistrationEndDate" DataSetColumn="RegistrationEndDate" />
              <Mapping SourceColumn="IsAfterEndRegistrationStillOpen" DataSetColumn="IsAfterEndRegistrationStillOpen" />
              <Mapping SourceColumn="Payment" DataSetColumn="Payment" />
              <Mapping SourceColumn="PaymentTypeName" DataSetColumn="PaymentTypeName" />
              <Mapping SourceColumn="StatusUpdateDate" DataSetColumn="StatusUpdateDate" />
              <Mapping SourceColumn="RegistrationComments" DataSetColumn="RegistrationComments" />
              <Mapping SourceColumn="IsStillProblem" DataSetColumn="IsStillProblem" />
              <Mapping SourceColumn="StatusText" DataSetColumn="StatusText" />
              <Mapping SourceColumn="IsActive" DataSetColumn="IsActive" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DSEventByPeople" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="DSEventByPeople" msprop:Generator_DataSetName="DSEventByPeople">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="EventsByPeople" msprop:Generator_UserTableName="EventsByPeople" msprop:Generator_RowDeletedName="EventsByPeopleRowDeleted" msprop:Generator_RowChangedName="EventsByPeopleRowChanged" msprop:Generator_RowClassName="EventsByPeopleRow" msprop:Generator_RowChangingName="EventsByPeopleRowChanging" msprop:Generator_RowEvArgName="EventsByPeopleRowChangeEvent" msprop:Generator_RowEvHandlerName="EventsByPeopleRowChangeEventHandler" msprop:Generator_TableClassName="EventsByPeopleDataTable" msprop:Generator_TableVarName="tableEventsByPeople" msprop:Generator_RowDeletingName="EventsByPeopleRowDeleting" msprop:Generator_TablePropName="EventsByPeople">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="EventID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="EventID" msprop:Generator_ColumnVarNameInTable="columnEventID" msprop:Generator_ColumnPropNameInRow="EventID" msprop:Generator_ColumnPropNameInTable="EventIDColumn" type="xs:int" />
              <xs:element name="EventName" msprop:Generator_UserColumnName="EventName" msprop:Generator_ColumnVarNameInTable="columnEventName" msprop:Generator_ColumnPropNameInRow="EventName" msprop:Generator_ColumnPropNameInTable="EventNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="150" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="StartDate" msprop:Generator_UserColumnName="StartDate" msprop:Generator_ColumnVarNameInTable="columnStartDate" msprop:Generator_ColumnPropNameInRow="StartDate" msprop:Generator_ColumnPropNameInTable="StartDateColumn" type="xs:dateTime" />
              <xs:element name="EndDate" msprop:Generator_UserColumnName="EndDate" msprop:Generator_ColumnVarNameInTable="columnEndDate" msprop:Generator_ColumnPropNameInRow="EndDate" msprop:Generator_ColumnPropNameInTable="EndDateColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="EventComments" msprop:Generator_UserColumnName="EventComments" msprop:Generator_ColumnVarNameInTable="columnEventComments" msprop:Generator_ColumnPropNameInRow="EventComments" msprop:Generator_ColumnPropNameInTable="EventCommentsColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="400" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Price" msprop:Generator_UserColumnName="Price" msprop:Generator_ColumnVarNameInTable="columnPrice" msprop:Generator_ColumnPropNameInRow="Price" msprop:Generator_ColumnPropNameInTable="PriceColumn" type="xs:decimal" />
              <xs:element name="IsDeleted" msprop:Generator_UserColumnName="IsDeleted" msprop:Generator_ColumnVarNameInTable="columnIsDeleted" msprop:Generator_ColumnPropNameInRow="IsDeleted" msprop:Generator_ColumnPropNameInTable="IsDeletedColumn" type="xs:boolean" />
              <xs:element name="RegistrationEndDate" msprop:Generator_UserColumnName="RegistrationEndDate" msprop:Generator_ColumnVarNameInTable="columnRegistrationEndDate" msprop:Generator_ColumnPropNameInRow="RegistrationEndDate" msprop:Generator_ColumnPropNameInTable="RegistrationEndDateColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="IsAfterEndRegistrationStillOpen" msprop:Generator_UserColumnName="IsAfterEndRegistrationStillOpen" msprop:Generator_ColumnVarNameInTable="columnIsAfterEndRegistrationStillOpen" msprop:Generator_ColumnPropNameInRow="IsAfterEndRegistrationStillOpen" msprop:Generator_ColumnPropNameInTable="IsAfterEndRegistrationStillOpenColumn" type="xs:boolean" />
              <xs:element name="Payment" msprop:Generator_UserColumnName="Payment" msprop:Generator_ColumnVarNameInTable="columnPayment" msprop:Generator_ColumnPropNameInRow="Payment" msprop:Generator_ColumnPropNameInTable="PaymentColumn" type="xs:decimal" />
              <xs:element name="PaymentTypeName" msprop:Generator_UserColumnName="PaymentTypeName" msprop:Generator_ColumnVarNameInTable="columnPaymentTypeName" msprop:Generator_ColumnPropNameInRow="PaymentTypeName" msprop:Generator_ColumnPropNameInTable="PaymentTypeNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="StatusUpdateDate" msprop:Generator_UserColumnName="StatusUpdateDate" msprop:Generator_ColumnVarNameInTable="columnStatusUpdateDate" msprop:Generator_ColumnPropNameInRow="StatusUpdateDate" msprop:Generator_ColumnPropNameInTable="StatusUpdateDateColumn" type="xs:dateTime" />
              <xs:element name="RegistrationComments" msprop:Generator_UserColumnName="RegistrationComments" msprop:Generator_ColumnVarNameInTable="columnRegistrationComments" msprop:Generator_ColumnPropNameInRow="RegistrationComments" msprop:Generator_ColumnPropNameInTable="RegistrationCommentsColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="400" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IsStillProblem" msprop:Generator_UserColumnName="IsStillProblem" msprop:Generator_ColumnVarNameInTable="columnIsStillProblem" msprop:Generator_ColumnPropNameInRow="IsStillProblem" msprop:Generator_ColumnPropNameInTable="IsStillProblemColumn" type="xs:boolean" />
              <xs:element name="StatusText" msprop:Generator_UserColumnName="StatusText" msprop:Generator_ColumnVarNameInTable="columnStatusText" msprop:Generator_ColumnPropNameInRow="StatusText" msprop:Generator_ColumnPropNameInTable="StatusTextColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IsActive" msprop:Generator_UserColumnName="IsActive" msprop:Generator_ColumnVarNameInTable="columnIsActive" msprop:Generator_ColumnPropNameInRow="IsActive" msprop:Generator_ColumnPropNameInTable="IsActiveColumn" type="xs:boolean" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:EventsByPeople" />
      <xs:field xpath="mstns:EventID" />
      <xs:field xpath="mstns:StatusUpdateDate" />
    </xs:unique>
  </xs:element>
</xs:schema>